def str_reverse(s):
    str = s[::-1]
    return str

def substr(s,x,y):
    str = s[x:y:1]
    return str